#define _CRT_SECURE_NO_WARNINGS
#include"string.h"
using std::cout;
using std::cin;
using std::endl;
void testing1()
{
	bit::string s("Ciallo World!");
	bit::string s1("Ciallo World!");
	bit::string s2(s1);
	//cout << s1.c_str()<<endl;
	//cout << s[4] << endl;

	////for (int i = 0; i < s.size(); i++)
	////{
	////	cout << s[i] ;
	////}
	//for (auto e : s2)
	//{
	//	cout << e;
	//}
	//cout << endl;
	/*s.push_back('~');
	s.append("~~~~*");
	cout << s.c_str() << endl;*/
	//s2.insert(7, '*');
	//s2.insert(0, '*');
	//s2.insert(0, "***");
	s2.erase(6,2);
	cout << s2.c_str() << endl;
	s = s2;
	cout << s.c_str() << endl;
	s2[3] = '6';
	cout << s.c_str() << endl;
	cout << s2.c_str() << endl;


}

void testing2()
{
	bit::string s("Ciallo World!");
	bit::string s1("Hello World!");

	//cout << s.find('o')<<endl;
	//cout << s.find('0') << endl;
	//cout << s.find("Ciallo") << endl;
	s.swap(s1);
	cout << s.c_str() << endl;
	cout << s1.c_str() << endl;

	bit::string s2(s1.substr(0, 6));
	cout << s2.c_str() << endl;

	cin >> s2;
	cout << s2;

}


int main()
{
	//testing1();
	testing2();
	return 0;
}